﻿<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
</head>
<body>
<div><input id="Insert" type="button" value="录入数据" /></div>
</body>
<script src="~/Content/jquery-2.1.0.js"></script>
<script>
    $(document).ready(function () {
        $("#Insert").click(function () {
            var result;
            $.ajax({
                url: "/Home/Handle",
                async: false,
                type: "POST",
                success: function (data) {
                    result = data.result;
                },
                error: function () {
                    result = false;
                }
            })
            alert(result);
        });
    });
</script>
</html>
